//
//  MJMsgHeadCell.m
//  WeCahtQQLogin
//
//  Created by HappyMilk 02 on 2017/2/9.
//  Copyright © 2017年 HappyMilk 02. All rights reserved.
//

#import "MJMsgHeadCell.h"


@implementation MJMsgHeadCell

- (void)setHeadUrl:(NSString *)headUrl{
    _headUrl = headUrl;
    
    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT,0), ^{
        UIImage *image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:headUrl]]];
        dispatch_async(dispatch_get_main_queue(), ^{
            self.head_image.image = image;
        });
    });
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    _lab_name.text = NSLocalizedStringFromTable(@"Head portrait", @"minePlist", nil);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
